package com.linq.cool.beauty.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author: yqlin
 * @Date: 2021/2/8 01:36
 * @Description: 优惠券美容项目产品关联表
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_coupon_product")
public class BeautyCouponProduct implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 优惠券id
     */
    @TableField(value = "coupon_id")
    private Long couponId;

    /**
     * 商品id
     */
    @TableField(value = "product_id")
    private Long productId;

    public BeautyCouponProduct(Long couponId, Long productId) {
        this.couponId = couponId;
        this.productId = productId;
    }
}